package com.fingersoft.feature.enterpriseconfig

import com.fingersoft.business.enterpriseconfig.EnterpriseConfigProvider
import com.fingersoft.feature.personal.api.EnterConfig
import com.fingersoft.im.utils.AppUtils

class MyEnterpriseConfigProvider : EnterpriseConfigProvider() {
    override fun getEnterpriseConfig(): EnterConfig {
        return AppUtils.getEnterConfig()
    }

    override fun saveEnterpriseConfig(enterConfig: EnterConfig) {
        @Suppress("DEPRECATION")
        AppUtils.saveEnterConfig(enterConfig)
        super.saveEnterpriseConfig(enterConfig)
    }

    override fun applyEnterpriseConfig() {
        @Suppress("DEPRECATION")
        AppUtils.Enterinit()
        super.applyEnterpriseConfig()
    }
}
